package word418.compclass;

public class student extends school {


  public String getName() {
    return name;
  }

  public void setName(String name) {
    this.name = name;
  }

  public double getWeigh() {
    return weigh;
  }

  public void setWeigh(double weigh) {
    this.weigh = weigh;
  }

  public double getStature() {
    return stature;
  }

  public void setStature(double stature) {
    this.stature = stature;
  }

  private String name;
  private double weigh;
  private double stature;

  public student(String name, double weigh, double stature) {
    this.name = name;
    this.weigh = weigh;
    this.stature = stature;
  }




  public student() {
  }



  @Override
  public double getBmi() {
    return weigh/(stature*stature);
  }

}
